package com.ruoyi.samplemod.service.impl;
import com.ruoyi.common.core.domain.entity.SysMenu;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.samplemod.domain.entity.EmilSystem;
import com.ruoyi.samplemod.mapper.EmailMapper;
import com.ruoyi.samplemod.service.SysEmilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SysEmilServiceImpl implements SysEmilService {

    @Autowired
    EmailMapper emailMapper;

    @Override
    public List<SysUser> getUserByDeptIds(List<String> deptIdList) {

        return emailMapper.getEmailBydeptIds(deptIdList);
    }

    @Override
    public List<EmilSystem> querySystemUser(Long system) {
        return emailMapper.querySystemUser(system);
    }

    @Override
    public List<SysMenu> getSystemMenu() {
        return emailMapper.getSystemMenu();
    }

    @Override
    public void setUserEmilSystem(List<Long> userIdList,Long menu_id) {
       emailMapper.setUserEmilSystem(userIdList,menu_id);
    }


}
